<nav class="navbar-default navbar-static-side" role="navigation" ng-controller="menuController">
    <div class="sidebar-collapse">
        <ul side-navigation class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element" dropdown>
                    <a class="dropdown-toggle" dropdown-toggle href>
                            <span class="clear">
                                <span class="block m-t-xs">
                                    <strong class="font-bold">{{loginedUser.name}}【{{nav.Name}}】</strong>
                                </span>
                                <span class="text-muted text-xs block">角色列表<b class="caret"></b></span>
                            </span>
                    </a>
                    <ul class="dropdown-menu  m-t-xs">
                        <li ng-click="changeRole('register')"><a>1.护士站</a></li>
                        <li ng-click="changeRole('makingModel')"><a>2.压模</a></li>
                        <li ng-click="changeRole('CTposition')"><a>3.CT模拟定位</a></li>
                        <li ng-click="changeRole('Contouring')"><a>4.勾靶</a></li>
                        <li ng-click="changeRole('EBP')"><a>5.物理师</a></li>
                        <li ng-click="changeRole('validate')"><a>6.验证</a></li>
                        <li ng-click="changeRole('charging')"><a>7.财务</a></li>
                        <li ng-click="changeRole('treatment')"><a>8.主治医师</a></li>
                      <li ng-click="changeRole('demo')"><a>9.测试</a></li>
                      <li ng-click="changeRole('admin')"><a>10.管理员</a></li>
                      <li ng-click="changeRole('template')"><a>11.模板</a></li>
                    </ul>
                </div>
                <div class="logo-element" ng-click="showDetail()">
                    <h5 ng-show="nav.Name.length>=4">{{nav.Name|limitTo:4}}</h5>
                    <h4 ng-show="nav.Name.length==3">{{nav.Name}}</h4>
                    <h3 ng-show="nav.Name.length==2">{{nav.Name}}</h3>
                </div>
            </li>

            <li ui-sref-active="active" ng-repeat="m in nav.menus" tooltip-enable="{{sideBarHidden}}" tooltip-placement="right" tooltip="{{m.txt}}">
                <a ui-sref="{{m.sref}}"><i class="fa {{m.icon}}"></i> <span class="nav-label">{{m.txt}}</span> </a>
            </li>
        </ul>

    </div>
</nav>
